﻿using System;
using System.Text;

namespace HslCommunication.BasicFramework
{
	/// <summary>
	/// 版本信息类，用于展示版本发布信息
	/// </summary>
	// Token: 0x020001A1 RID: 417
	public sealed class VersionInfo
	{
		/// <summary>
		/// 版本的发行日期
		/// </summary>
		// Token: 0x170006C1 RID: 1729
		// (get) Token: 0x06002122 RID: 8482 RVA: 0x000A136A File Offset: 0x0009F56A
		// (set) Token: 0x06002123 RID: 8483 RVA: 0x000A1372 File Offset: 0x0009F572
		public DateTime ReleaseDate { get; set; } = DateTime.Now;

		/// <summary>
		/// 版本的更新细节
		/// </summary>
		// Token: 0x170006C2 RID: 1730
		// (get) Token: 0x06002124 RID: 8484 RVA: 0x000A137B File Offset: 0x0009F57B
		// (set) Token: 0x06002125 RID: 8485 RVA: 0x000A1383 File Offset: 0x0009F583
		public StringBuilder UpdateDetails { get; set; } = new StringBuilder();

		/// <summary>
		/// 版本号
		/// </summary>
		// Token: 0x170006C3 RID: 1731
		// (get) Token: 0x06002126 RID: 8486 RVA: 0x000A138C File Offset: 0x0009F58C
		// (set) Token: 0x06002127 RID: 8487 RVA: 0x000A1394 File Offset: 0x0009F594
		public SystemVersion VersionNum { get; set; } = new SystemVersion(1, 0, 0);

		/// <inheritdoc />
		// Token: 0x06002128 RID: 8488 RVA: 0x000A139D File Offset: 0x0009F59D
		public override string ToString()
		{
			return this.VersionNum.ToString();
		}
	}
}
